<!DOCTYPE html>

<html>
    <head>
        <title>#{get 'title' /}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link type="text/css" rel="stylesheet" media = "screen, tv, projection" href="@{'/public/stylesheets/theme.css'}" />
        <style type="text/css">
		body {
		background-image:url("@{'/public/images/melody.jpg'}");
		background-repeat: no-repeat;
		background-position: 62em 25em ;
		background-attachment: fixed;
		}
		
		</style>
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/public/javascripts/jquery-1.4.2.min.js'}" type="text/javascript" charset="utf-8"></script>
        
        #{get 'moreScripts' /}
    </head>
    <body>
        
<div class="example">

<ul class="adxm menu">

<li><a href="#">Students</a>

	<ul>

	<li><a href="@{Application.createStudent()}">Create Student</a></li>

	<li><a href="@{Application.displayStudents()}">Update Student</a></li>
	
	<li><a href="@{Application.deleteStudent()}">Delete Student</a></li>

	</ul>

</li>

<li><a href="#" >Teachers</a>

	<ul>

	<li><a href="@{Application.createTeacher()}">Create Teacher</a></li>

	<li><a href="@{Application.displayTeachers()}">Update Teacher</a></li>

	<li><a href="@{Application.addTeacherActivity()}">Add Activities</a></li>
	
	#{if session.get("username").equals("root")}
	<li><a href="@{Attendance.getSalary()}">Set Salary</a></li>
	#{/if}
	
	</ul>
	
	</li>
	
<li><a href="#">Actitvites</a>

	<ul>

	<li><a href="@{Application.createActivity()}">Create Activity</a></li>
	<li><a href="@{Application.deleteActivity()}">Delete Activity</a></li>

	</ul>

</li>

<li><a href="#" >Courses</a>

	<ul>

	<li><a href="@{Application.createCourse()}">Create Course</a></li>

	<li><a href="@{Application.updateCourse()}">Update Course</a></li>

	</ul>
	
	</li>
	

<li><a href="#" >Register</a> 
	
	<ul>

	<li><a href="@{Application.registerCourse()}">New Registration</a></li>
	
	<li><a href="@{Application.browse_registration()}">Browse Registrations</a></li>


	</ul>

</li>

<li><a href="@{Attendance.viewClasses()}" >Attendance</a> </li>

<li><a href="@{Secure.Logout()}" >Logout</a> </li>

</ul>

</div>
    <div id="soft" style="left:57px; top:110px;position: absolute;">
	     
	    <div id="flash">
	    #{if flash.success}
		<h2 style="color: blue;">${flash.success}</h2>
		#{/if}
	
		#{if flash.error}
		<h2 style="color: red;">${flash.error}</h2>
		#{/if}
		</div>         
	     
	     #{doLayout /}
	     <br>
	
	</div>
	<div id="owner" style = "left:1030px; top:645px;position: fixed;">
	<b style="font-size: medium; font-style: oblique;"><i>Application Developed by<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Andrew Guirguis</i></b>
	</div>
	
    </body>
    
    
</html>
